/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this value object you may modify the generated sub-class of this class - VoGoodsReceived.as.
 */

package com.model.valueObjects
{
import com.adobe.fiber.services.IFiberManagingService;
import com.adobe.fiber.util.FiberUtils;
import com.adobe.fiber.valueobjects.IValueObject;
import flash.events.Event;
import flash.events.EventDispatcher;
import mx.binding.utils.ChangeWatcher;
import mx.collections.ArrayCollection;
import mx.events.CollectionEvent;
import mx.events.PropertyChangeEvent;
import mx.validators.ValidationResult;

import flash.net.registerClassAlias;
import flash.net.getClassByAlias;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;

use namespace model_internal;

[ExcludeClass]
public class _Super_VoGoodsReceived extends flash.events.EventDispatcher implements com.adobe.fiber.valueobjects.IValueObject
{
    model_internal static function initRemoteClassAliasSingle(cz:Class) : void
    {
        try
        {
            if (flash.net.getClassByAlias("VoGoodsReceived") == null)
            {
                flash.net.registerClassAlias("VoGoodsReceived", cz);
            }
        }
        catch (e:Error)
        {
            flash.net.registerClassAlias("VoGoodsReceived", cz);
        }
    }

    model_internal static function initRemoteClassAliasAllRelated() : void
    {
    }

    model_internal var _dminternal_model : _VoGoodsReceivedEntityMetadata;

    /**
     * properties
     */
    private var _internal_currency_name : String;
    private var _internal_curr_received_qty : ArrayCollection;
    private var _internal_pro_name : ArrayCollection;
    private var _internal_total_qty : int;
    private var _internal_cre_userid_fk : int;
    private var _internal_vendor_ref_no : String;
    private var _internal_part_number : ArrayCollection;
    private var _internal_sc_fk : ArrayCollection;
    private var _internal_map_do : int;
    private var _internal_unit_price : ArrayCollection;
    private var _internal_pro_description : ArrayCollection;
    private var _internal_po_serialnumber : ArrayCollection;
    private var _internal_sc_detserialnumber_fk : ArrayCollection;
    private var _internal_currency_serialnumber_fk : int;
    private var _internal_activestatus : Boolean;
    private var _internal_grn_detserialnumber : ArrayCollection;
    private var _internal_current_rate : Number;
    private var _internal_goods_received_date : String;
    private var _internal_gr_id : String;
    private var _internal_client_name : String;
    private var _internal_gr_serialnumber : int;
    private var _internal_total_amount : Number;
    private var _internal_cre_datetime : String;
    private var _internal_po_detserialnumber_fk : ArrayCollection;
    private var _internal_po_id : ArrayCollection;
    private var _internal_pro_total_price : ArrayCollection;
    private var _internal_gr_gst : int;
    private var _internal_balance_qty : ArrayCollection;
    private var _internal_supplier_serialnumber_fk : int;
    private var _internal_pro_serialnumber_fk : ArrayCollection;
    private var _internal_gr_serialnumber_fk : ArrayCollection;
    private var _internal_po_qty : ArrayCollection;
    private var _internal_sales_con_code : ArrayCollection;
    private var _internal_received_qty : ArrayCollection;
    private var _internal_warehouse_serialnumber_fk : ArrayCollection;

    private static var emptyArray:Array = new Array();

    // Change this value according to your application's floating-point precision
    private static var epsilon:Number = 0.0001;

    /**
     * derived property cache initialization
     */
    model_internal var _cacheInitialized_isValid:Boolean = false;

    model_internal var _changeWatcherArray:Array = new Array();

    public function _Super_VoGoodsReceived()
    {
        _model = new _VoGoodsReceivedEntityMetadata(this);

        // Bind to own data properties for cache invalidation triggering
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "currency_name", model_internal::setterListenerCurrency_name));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "curr_received_qty", model_internal::setterListenerCurr_received_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_name", model_internal::setterListenerPro_name));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "vendor_ref_no", model_internal::setterListenerVendor_ref_no));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "part_number", model_internal::setterListenerPart_number));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sc_fk", model_internal::setterListenerSc_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "unit_price", model_internal::setterListenerUnit_price));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_description", model_internal::setterListenerPro_description));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "po_serialnumber", model_internal::setterListenerPo_serialnumber));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sc_detserialnumber_fk", model_internal::setterListenerSc_detserialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "grn_detserialnumber", model_internal::setterListenerGrn_detserialnumber));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "goods_received_date", model_internal::setterListenerGoods_received_date));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "gr_id", model_internal::setterListenerGr_id));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "client_name", model_internal::setterListenerClient_name));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "cre_datetime", model_internal::setterListenerCre_datetime));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "po_detserialnumber_fk", model_internal::setterListenerPo_detserialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "po_id", model_internal::setterListenerPo_id));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_total_price", model_internal::setterListenerPro_total_price));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "balance_qty", model_internal::setterListenerBalance_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_serialnumber_fk", model_internal::setterListenerPro_serialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "gr_serialnumber_fk", model_internal::setterListenerGr_serialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "po_qty", model_internal::setterListenerPo_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sales_con_code", model_internal::setterListenerSales_con_code));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "received_qty", model_internal::setterListenerReceived_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "warehouse_serialnumber_fk", model_internal::setterListenerWarehouse_serialnumber_fk));

    }

    /**
     * data property getters
     */

    [Bindable(event="propertyChange")]
    public function get currency_name() : String
    {
        return _internal_currency_name;
    }

    [Bindable(event="propertyChange")]
    public function get curr_received_qty() : ArrayCollection
    {
        return _internal_curr_received_qty;
    }

    [Bindable(event="propertyChange")]
    public function get pro_name() : ArrayCollection
    {
        return _internal_pro_name;
    }

    [Bindable(event="propertyChange")]
    public function get total_qty() : int
    {
        return _internal_total_qty;
    }

    [Bindable(event="propertyChange")]
    public function get cre_userid_fk() : int
    {
        return _internal_cre_userid_fk;
    }

    [Bindable(event="propertyChange")]
    public function get vendor_ref_no() : String
    {
        return _internal_vendor_ref_no;
    }

    [Bindable(event="propertyChange")]
    public function get part_number() : ArrayCollection
    {
        return _internal_part_number;
    }

    [Bindable(event="propertyChange")]
    public function get sc_fk() : ArrayCollection
    {
        return _internal_sc_fk;
    }

    [Bindable(event="propertyChange")]
    public function get map_do() : int
    {
        return _internal_map_do;
    }

    [Bindable(event="propertyChange")]
    public function get unit_price() : ArrayCollection
    {
        return _internal_unit_price;
    }

    [Bindable(event="propertyChange")]
    public function get pro_description() : ArrayCollection
    {
        return _internal_pro_description;
    }

    [Bindable(event="propertyChange")]
    public function get po_serialnumber() : ArrayCollection
    {
        return _internal_po_serialnumber;
    }

    [Bindable(event="propertyChange")]
    public function get sc_detserialnumber_fk() : ArrayCollection
    {
        return _internal_sc_detserialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get currency_serialnumber_fk() : int
    {
        return _internal_currency_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get activestatus() : Boolean
    {
        return _internal_activestatus;
    }

    [Bindable(event="propertyChange")]
    public function get grn_detserialnumber() : ArrayCollection
    {
        return _internal_grn_detserialnumber;
    }

    [Bindable(event="propertyChange")]
    public function get current_rate() : Number
    {
        return _internal_current_rate;
    }

    [Bindable(event="propertyChange")]
    public function get goods_received_date() : String
    {
        return _internal_goods_received_date;
    }

    [Bindable(event="propertyChange")]
    public function get gr_id() : String
    {
        return _internal_gr_id;
    }

    [Bindable(event="propertyChange")]
    public function get client_name() : String
    {
        return _internal_client_name;
    }

    [Bindable(event="propertyChange")]
    public function get gr_serialnumber() : int
    {
        return _internal_gr_serialnumber;
    }

    [Bindable(event="propertyChange")]
    public function get total_amount() : Number
    {
        return _internal_total_amount;
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetime() : String
    {
        return _internal_cre_datetime;
    }

    [Bindable(event="propertyChange")]
    public function get po_detserialnumber_fk() : ArrayCollection
    {
        return _internal_po_detserialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get po_id() : ArrayCollection
    {
        return _internal_po_id;
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_price() : ArrayCollection
    {
        return _internal_pro_total_price;
    }

    [Bindable(event="propertyChange")]
    public function get gr_gst() : int
    {
        return _internal_gr_gst;
    }

    [Bindable(event="propertyChange")]
    public function get balance_qty() : ArrayCollection
    {
        return _internal_balance_qty;
    }

    [Bindable(event="propertyChange")]
    public function get supplier_serialnumber_fk() : int
    {
        return _internal_supplier_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fk() : ArrayCollection
    {
        return _internal_pro_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get gr_serialnumber_fk() : ArrayCollection
    {
        return _internal_gr_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get po_qty() : ArrayCollection
    {
        return _internal_po_qty;
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_code() : ArrayCollection
    {
        return _internal_sales_con_code;
    }

    [Bindable(event="propertyChange")]
    public function get received_qty() : ArrayCollection
    {
        return _internal_received_qty;
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fk() : ArrayCollection
    {
        return _internal_warehouse_serialnumber_fk;
    }

    /**
     * data property setters
     */

    public function set currency_name(value:String) : void
    {
        var oldValue:String = _internal_currency_name;
        if (oldValue !== value)
        {
            _internal_currency_name = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "currency_name", oldValue, _internal_currency_name));
        }
    }

    public function set curr_received_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_curr_received_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_curr_received_qty = value;
            }
            else if (value is Array)
            {
                _internal_curr_received_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of curr_received_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "curr_received_qty", oldValue, _internal_curr_received_qty));
        }
    }

    public function set pro_name(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_name;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_name = value;
            }
            else if (value is Array)
            {
                _internal_pro_name = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_name must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_name", oldValue, _internal_pro_name));
        }
    }

    public function set total_qty(value:int) : void
    {
        var oldValue:int = _internal_total_qty;
        if (oldValue !== value)
        {
            _internal_total_qty = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "total_qty", oldValue, _internal_total_qty));
        }
    }

    public function set cre_userid_fk(value:int) : void
    {
        var oldValue:int = _internal_cre_userid_fk;
        if (oldValue !== value)
        {
            _internal_cre_userid_fk = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_userid_fk", oldValue, _internal_cre_userid_fk));
        }
    }

    public function set vendor_ref_no(value:String) : void
    {
        var oldValue:String = _internal_vendor_ref_no;
        if (oldValue !== value)
        {
            _internal_vendor_ref_no = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "vendor_ref_no", oldValue, _internal_vendor_ref_no));
        }
    }

    public function set part_number(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_part_number;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_part_number = value;
            }
            else if (value is Array)
            {
                _internal_part_number = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of part_number must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_number", oldValue, _internal_part_number));
        }
    }

    public function set sc_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_sc_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_sc_fk = value;
            }
            else if (value is Array)
            {
                _internal_sc_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of sc_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_fk", oldValue, _internal_sc_fk));
        }
    }

    public function set map_do(value:int) : void
    {
        var oldValue:int = _internal_map_do;
        if (oldValue !== value)
        {
            _internal_map_do = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "map_do", oldValue, _internal_map_do));
        }
    }

    public function set unit_price(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_unit_price;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_unit_price = value;
            }
            else if (value is Array)
            {
                _internal_unit_price = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of unit_price must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "unit_price", oldValue, _internal_unit_price));
        }
    }

    public function set pro_description(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_description;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_description = value;
            }
            else if (value is Array)
            {
                _internal_pro_description = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_description must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_description", oldValue, _internal_pro_description));
        }
    }

    public function set po_serialnumber(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_po_serialnumber;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_po_serialnumber = value;
            }
            else if (value is Array)
            {
                _internal_po_serialnumber = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of po_serialnumber must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_serialnumber", oldValue, _internal_po_serialnumber));
        }
    }

    public function set sc_detserialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_sc_detserialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_sc_detserialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_sc_detserialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of sc_detserialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_detserialnumber_fk", oldValue, _internal_sc_detserialnumber_fk));
        }
    }

    public function set currency_serialnumber_fk(value:int) : void
    {
        var oldValue:int = _internal_currency_serialnumber_fk;
        if (oldValue !== value)
        {
            _internal_currency_serialnumber_fk = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "currency_serialnumber_fk", oldValue, _internal_currency_serialnumber_fk));
        }
    }

    public function set activestatus(value:Boolean) : void
    {
        var oldValue:Boolean = _internal_activestatus;
        if (oldValue !== value)
        {
            _internal_activestatus = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "activestatus", oldValue, _internal_activestatus));
        }
    }

    public function set grn_detserialnumber(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_grn_detserialnumber;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_grn_detserialnumber = value;
            }
            else if (value is Array)
            {
                _internal_grn_detserialnumber = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of grn_detserialnumber must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "grn_detserialnumber", oldValue, _internal_grn_detserialnumber));
        }
    }

    public function set current_rate(value:Number) : void
    {
        var oldValue:Number = _internal_current_rate;
        if (isNaN(_internal_current_rate) == true || Math.abs(oldValue - value) > epsilon)
        {
            _internal_current_rate = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "current_rate", oldValue, _internal_current_rate));
        }
    }

    public function set goods_received_date(value:String) : void
    {
        var oldValue:String = _internal_goods_received_date;
        if (oldValue !== value)
        {
            _internal_goods_received_date = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "goods_received_date", oldValue, _internal_goods_received_date));
        }
    }

    public function set gr_id(value:String) : void
    {
        var oldValue:String = _internal_gr_id;
        if (oldValue !== value)
        {
            _internal_gr_id = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_id", oldValue, _internal_gr_id));
        }
    }

    public function set client_name(value:String) : void
    {
        var oldValue:String = _internal_client_name;
        if (oldValue !== value)
        {
            _internal_client_name = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_name", oldValue, _internal_client_name));
        }
    }

    public function set gr_serialnumber(value:int) : void
    {
        var oldValue:int = _internal_gr_serialnumber;
        if (oldValue !== value)
        {
            _internal_gr_serialnumber = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_serialnumber", oldValue, _internal_gr_serialnumber));
        }
    }

    public function set total_amount(value:Number) : void
    {
        var oldValue:Number = _internal_total_amount;
        if (isNaN(_internal_total_amount) == true || Math.abs(oldValue - value) > epsilon)
        {
            _internal_total_amount = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "total_amount", oldValue, _internal_total_amount));
        }
    }

    public function set cre_datetime(value:String) : void
    {
        var oldValue:String = _internal_cre_datetime;
        if (oldValue !== value)
        {
            _internal_cre_datetime = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetime", oldValue, _internal_cre_datetime));
        }
    }

    public function set po_detserialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_po_detserialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_po_detserialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_po_detserialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of po_detserialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_detserialnumber_fk", oldValue, _internal_po_detserialnumber_fk));
        }
    }

    public function set po_id(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_po_id;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_po_id = value;
            }
            else if (value is Array)
            {
                _internal_po_id = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of po_id must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_id", oldValue, _internal_po_id));
        }
    }

    public function set pro_total_price(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_total_price;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_total_price = value;
            }
            else if (value is Array)
            {
                _internal_pro_total_price = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_total_price must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_price", oldValue, _internal_pro_total_price));
        }
    }

    public function set gr_gst(value:int) : void
    {
        var oldValue:int = _internal_gr_gst;
        if (oldValue !== value)
        {
            _internal_gr_gst = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_gst", oldValue, _internal_gr_gst));
        }
    }

    public function set balance_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_balance_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_balance_qty = value;
            }
            else if (value is Array)
            {
                _internal_balance_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of balance_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "balance_qty", oldValue, _internal_balance_qty));
        }
    }

    public function set supplier_serialnumber_fk(value:int) : void
    {
        var oldValue:int = _internal_supplier_serialnumber_fk;
        if (oldValue !== value)
        {
            _internal_supplier_serialnumber_fk = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "supplier_serialnumber_fk", oldValue, _internal_supplier_serialnumber_fk));
        }
    }

    public function set pro_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_pro_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fk", oldValue, _internal_pro_serialnumber_fk));
        }
    }

    public function set gr_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_gr_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_gr_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_gr_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of gr_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_serialnumber_fk", oldValue, _internal_gr_serialnumber_fk));
        }
    }

    public function set po_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_po_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_po_qty = value;
            }
            else if (value is Array)
            {
                _internal_po_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of po_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_qty", oldValue, _internal_po_qty));
        }
    }

    public function set sales_con_code(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_sales_con_code;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_sales_con_code = value;
            }
            else if (value is Array)
            {
                _internal_sales_con_code = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of sales_con_code must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_code", oldValue, _internal_sales_con_code));
        }
    }

    public function set received_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_received_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_received_qty = value;
            }
            else if (value is Array)
            {
                _internal_received_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of received_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "received_qty", oldValue, _internal_received_qty));
        }
    }

    public function set warehouse_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_warehouse_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_warehouse_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_warehouse_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of warehouse_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fk", oldValue, _internal_warehouse_serialnumber_fk));
        }
    }

    /**
     * Data property setter listeners
     *
     * Each data property whose value affects other properties or the validity of the entity
     * needs to invalidate all previously calculated artifacts. These include:
     *  - any derived properties or constraints that reference the given data property.
     *  - any availability guards (variant expressions) that reference the given data property.
     *  - any style validations, message tokens or guards that reference the given data property.
     *  - the validity of the property (and the containing entity) if the given data property has a length restriction.
     *  - the validity of the property (and the containing entity) if the given data property is required.
     */

    model_internal function setterListenerCurrency_name(value:flash.events.Event):void
    {
        _model.invalidateDependentOnCurrency_name();
    }

    model_internal function setterListenerCurr_received_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerCurr_received_qty);
            }
        }
        _model.invalidateDependentOnCurr_received_qty();
    }

    model_internal function setterListenerPro_name(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_name);
            }
        }
        _model.invalidateDependentOnPro_name();
    }

    model_internal function setterListenerVendor_ref_no(value:flash.events.Event):void
    {
        _model.invalidateDependentOnVendor_ref_no();
    }

    model_internal function setterListenerPart_number(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPart_number);
            }
        }
        _model.invalidateDependentOnPart_number();
    }

    model_internal function setterListenerSc_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerSc_fk);
            }
        }
        _model.invalidateDependentOnSc_fk();
    }

    model_internal function setterListenerUnit_price(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerUnit_price);
            }
        }
        _model.invalidateDependentOnUnit_price();
    }

    model_internal function setterListenerPro_description(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_description);
            }
        }
        _model.invalidateDependentOnPro_description();
    }

    model_internal function setterListenerPo_serialnumber(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPo_serialnumber);
            }
        }
        _model.invalidateDependentOnPo_serialnumber();
    }

    model_internal function setterListenerSc_detserialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerSc_detserialnumber_fk);
            }
        }
        _model.invalidateDependentOnSc_detserialnumber_fk();
    }

    model_internal function setterListenerGrn_detserialnumber(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerGrn_detserialnumber);
            }
        }
        _model.invalidateDependentOnGrn_detserialnumber();
    }

    model_internal function setterListenerGoods_received_date(value:flash.events.Event):void
    {
        _model.invalidateDependentOnGoods_received_date();
    }

    model_internal function setterListenerGr_id(value:flash.events.Event):void
    {
        _model.invalidateDependentOnGr_id();
    }

    model_internal function setterListenerClient_name(value:flash.events.Event):void
    {
        _model.invalidateDependentOnClient_name();
    }

    model_internal function setterListenerCre_datetime(value:flash.events.Event):void
    {
        _model.invalidateDependentOnCre_datetime();
    }

    model_internal function setterListenerPo_detserialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPo_detserialnumber_fk);
            }
        }
        _model.invalidateDependentOnPo_detserialnumber_fk();
    }

    model_internal function setterListenerPo_id(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPo_id);
            }
        }
        _model.invalidateDependentOnPo_id();
    }

    model_internal function setterListenerPro_total_price(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_total_price);
            }
        }
        _model.invalidateDependentOnPro_total_price();
    }

    model_internal function setterListenerBalance_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerBalance_qty);
            }
        }
        _model.invalidateDependentOnBalance_qty();
    }

    model_internal function setterListenerPro_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnPro_serialnumber_fk();
    }

    model_internal function setterListenerGr_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerGr_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnGr_serialnumber_fk();
    }

    model_internal function setterListenerPo_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPo_qty);
            }
        }
        _model.invalidateDependentOnPo_qty();
    }

    model_internal function setterListenerSales_con_code(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerSales_con_code);
            }
        }
        _model.invalidateDependentOnSales_con_code();
    }

    model_internal function setterListenerReceived_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerReceived_qty);
            }
        }
        _model.invalidateDependentOnReceived_qty();
    }

    model_internal function setterListenerWarehouse_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerWarehouse_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnWarehouse_serialnumber_fk();
    }


    /**
     * valid related derived properties
     */
    model_internal var _isValid : Boolean;
    model_internal var _invalidConstraints:Array = new Array();
    model_internal var _validationFailureMessages:Array = new Array();

    /**
     * derived property calculators
     */

    /**
     * isValid calculator
     */
    model_internal function calculateIsValid():Boolean
    {
        var violatedConsts:Array = new Array();
        var validationFailureMessages:Array = new Array();

        var propertyValidity:Boolean = true;
        if (!_model.currency_nameIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_currency_nameValidationFailureMessages);
        }
        if (!_model.curr_received_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_curr_received_qtyValidationFailureMessages);
        }
        if (!_model.pro_nameIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_nameValidationFailureMessages);
        }
        if (!_model.vendor_ref_noIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_vendor_ref_noValidationFailureMessages);
        }
        if (!_model.part_numberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_part_numberValidationFailureMessages);
        }
        if (!_model.sc_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sc_fkValidationFailureMessages);
        }
        if (!_model.unit_priceIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_unit_priceValidationFailureMessages);
        }
        if (!_model.pro_descriptionIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_descriptionValidationFailureMessages);
        }
        if (!_model.po_serialnumberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_po_serialnumberValidationFailureMessages);
        }
        if (!_model.sc_detserialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sc_detserialnumber_fkValidationFailureMessages);
        }
        if (!_model.grn_detserialnumberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_grn_detserialnumberValidationFailureMessages);
        }
        if (!_model.goods_received_dateIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_goods_received_dateValidationFailureMessages);
        }
        if (!_model.gr_idIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_gr_idValidationFailureMessages);
        }
        if (!_model.client_nameIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_client_nameValidationFailureMessages);
        }
        if (!_model.cre_datetimeIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_cre_datetimeValidationFailureMessages);
        }
        if (!_model.po_detserialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_po_detserialnumber_fkValidationFailureMessages);
        }
        if (!_model.po_idIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_po_idValidationFailureMessages);
        }
        if (!_model.pro_total_priceIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_total_priceValidationFailureMessages);
        }
        if (!_model.balance_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_balance_qtyValidationFailureMessages);
        }
        if (!_model.pro_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_serialnumber_fkValidationFailureMessages);
        }
        if (!_model.gr_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_gr_serialnumber_fkValidationFailureMessages);
        }
        if (!_model.po_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_po_qtyValidationFailureMessages);
        }
        if (!_model.sales_con_codeIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sales_con_codeValidationFailureMessages);
        }
        if (!_model.received_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_received_qtyValidationFailureMessages);
        }
        if (!_model.warehouse_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_warehouse_serialnumber_fkValidationFailureMessages);
        }

        model_internal::_cacheInitialized_isValid = true;
        model_internal::invalidConstraints_der = violatedConsts;
        model_internal::validationFailureMessages_der = validationFailureMessages;
        return violatedConsts.length == 0 && propertyValidity;
    }

    /**
     * derived property setters
     */

    model_internal function set isValid_der(value:Boolean) : void
    {
        var oldValue:Boolean = model_internal::_isValid;
        if (oldValue !== value)
        {
            model_internal::_isValid = value;
            _model.model_internal::fireChangeEvent("isValid", oldValue, model_internal::_isValid);
        }
    }

    /**
     * derived property getters
     */

    [Transient]
    [Bindable(event="propertyChange")]
    public function get _model() : _VoGoodsReceivedEntityMetadata
    {
        return model_internal::_dminternal_model;
    }

    public function set _model(value : _VoGoodsReceivedEntityMetadata) : void
    {
        var oldValue : _VoGoodsReceivedEntityMetadata = model_internal::_dminternal_model;
        if (oldValue !== value)
        {
            model_internal::_dminternal_model = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "_model", oldValue, model_internal::_dminternal_model));
        }
    }

    /**
     * methods
     */


    /**
     *  services
     */
    private var _managingService:com.adobe.fiber.services.IFiberManagingService;

    public function set managingService(managingService:com.adobe.fiber.services.IFiberManagingService):void
    {
        _managingService = managingService;
    }

    model_internal function set invalidConstraints_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_invalidConstraints;
        // avoid firing the event when old and new value are different empty arrays
        if (oldValue !== value && (oldValue.length > 0 || value.length > 0))
        {
            model_internal::_invalidConstraints = value;
            _model.model_internal::fireChangeEvent("invalidConstraints", oldValue, model_internal::_invalidConstraints);
        }
    }

    model_internal function set validationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_validationFailureMessages;
        // avoid firing the event when old and new value are different empty arrays
        if (oldValue !== value && (oldValue.length > 0 || value.length > 0))
        {
            model_internal::_validationFailureMessages = value;
            _model.model_internal::fireChangeEvent("validationFailureMessages", oldValue, model_internal::_validationFailureMessages);
        }
    }

    model_internal var _doValidationCacheOfCurrency_name : Array = null;
    model_internal var _doValidationLastValOfCurrency_name : String;

    model_internal function _doValidationForCurrency_name(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfCurrency_name != null && model_internal::_doValidationLastValOfCurrency_name == value)
           return model_internal::_doValidationCacheOfCurrency_name ;

        _model.model_internal::_currency_nameIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isCurrency_nameAvailable && _internal_currency_name == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "currency_name is required"));
        }

        model_internal::_doValidationCacheOfCurrency_name = validationFailures;
        model_internal::_doValidationLastValOfCurrency_name = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfCurr_received_qty : Array = null;
    model_internal var _doValidationLastValOfCurr_received_qty : ArrayCollection;

    model_internal function _doValidationForCurr_received_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfCurr_received_qty != null && model_internal::_doValidationLastValOfCurr_received_qty == value)
           return model_internal::_doValidationCacheOfCurr_received_qty ;

        _model.model_internal::_curr_received_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isCurr_received_qtyAvailable && _internal_curr_received_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "curr_received_qty is required"));
        }

        model_internal::_doValidationCacheOfCurr_received_qty = validationFailures;
        model_internal::_doValidationLastValOfCurr_received_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_name : Array = null;
    model_internal var _doValidationLastValOfPro_name : ArrayCollection;

    model_internal function _doValidationForPro_name(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_name != null && model_internal::_doValidationLastValOfPro_name == value)
           return model_internal::_doValidationCacheOfPro_name ;

        _model.model_internal::_pro_nameIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_nameAvailable && _internal_pro_name == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_name is required"));
        }

        model_internal::_doValidationCacheOfPro_name = validationFailures;
        model_internal::_doValidationLastValOfPro_name = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfVendor_ref_no : Array = null;
    model_internal var _doValidationLastValOfVendor_ref_no : String;

    model_internal function _doValidationForVendor_ref_no(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfVendor_ref_no != null && model_internal::_doValidationLastValOfVendor_ref_no == value)
           return model_internal::_doValidationCacheOfVendor_ref_no ;

        _model.model_internal::_vendor_ref_noIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isVendor_ref_noAvailable && _internal_vendor_ref_no == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "vendor_ref_no is required"));
        }

        model_internal::_doValidationCacheOfVendor_ref_no = validationFailures;
        model_internal::_doValidationLastValOfVendor_ref_no = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPart_number : Array = null;
    model_internal var _doValidationLastValOfPart_number : ArrayCollection;

    model_internal function _doValidationForPart_number(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPart_number != null && model_internal::_doValidationLastValOfPart_number == value)
           return model_internal::_doValidationCacheOfPart_number ;

        _model.model_internal::_part_numberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPart_numberAvailable && _internal_part_number == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "part_number is required"));
        }

        model_internal::_doValidationCacheOfPart_number = validationFailures;
        model_internal::_doValidationLastValOfPart_number = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSc_fk : Array = null;
    model_internal var _doValidationLastValOfSc_fk : ArrayCollection;

    model_internal function _doValidationForSc_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfSc_fk != null && model_internal::_doValidationLastValOfSc_fk == value)
           return model_internal::_doValidationCacheOfSc_fk ;

        _model.model_internal::_sc_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSc_fkAvailable && _internal_sc_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sc_fk is required"));
        }

        model_internal::_doValidationCacheOfSc_fk = validationFailures;
        model_internal::_doValidationLastValOfSc_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfUnit_price : Array = null;
    model_internal var _doValidationLastValOfUnit_price : ArrayCollection;

    model_internal function _doValidationForUnit_price(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfUnit_price != null && model_internal::_doValidationLastValOfUnit_price == value)
           return model_internal::_doValidationCacheOfUnit_price ;

        _model.model_internal::_unit_priceIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isUnit_priceAvailable && _internal_unit_price == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "unit_price is required"));
        }

        model_internal::_doValidationCacheOfUnit_price = validationFailures;
        model_internal::_doValidationLastValOfUnit_price = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_description : Array = null;
    model_internal var _doValidationLastValOfPro_description : ArrayCollection;

    model_internal function _doValidationForPro_description(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_description != null && model_internal::_doValidationLastValOfPro_description == value)
           return model_internal::_doValidationCacheOfPro_description ;

        _model.model_internal::_pro_descriptionIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_descriptionAvailable && _internal_pro_description == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_description is required"));
        }

        model_internal::_doValidationCacheOfPro_description = validationFailures;
        model_internal::_doValidationLastValOfPro_description = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPo_serialnumber : Array = null;
    model_internal var _doValidationLastValOfPo_serialnumber : ArrayCollection;

    model_internal function _doValidationForPo_serialnumber(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPo_serialnumber != null && model_internal::_doValidationLastValOfPo_serialnumber == value)
           return model_internal::_doValidationCacheOfPo_serialnumber ;

        _model.model_internal::_po_serialnumberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPo_serialnumberAvailable && _internal_po_serialnumber == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "po_serialnumber is required"));
        }

        model_internal::_doValidationCacheOfPo_serialnumber = validationFailures;
        model_internal::_doValidationLastValOfPo_serialnumber = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSc_detserialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfSc_detserialnumber_fk : ArrayCollection;

    model_internal function _doValidationForSc_detserialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfSc_detserialnumber_fk != null && model_internal::_doValidationLastValOfSc_detserialnumber_fk == value)
           return model_internal::_doValidationCacheOfSc_detserialnumber_fk ;

        _model.model_internal::_sc_detserialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSc_detserialnumber_fkAvailable && _internal_sc_detserialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sc_detserialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfSc_detserialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfSc_detserialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfGrn_detserialnumber : Array = null;
    model_internal var _doValidationLastValOfGrn_detserialnumber : ArrayCollection;

    model_internal function _doValidationForGrn_detserialnumber(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfGrn_detserialnumber != null && model_internal::_doValidationLastValOfGrn_detserialnumber == value)
           return model_internal::_doValidationCacheOfGrn_detserialnumber ;

        _model.model_internal::_grn_detserialnumberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isGrn_detserialnumberAvailable && _internal_grn_detserialnumber == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "grn_detserialnumber is required"));
        }

        model_internal::_doValidationCacheOfGrn_detserialnumber = validationFailures;
        model_internal::_doValidationLastValOfGrn_detserialnumber = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfGoods_received_date : Array = null;
    model_internal var _doValidationLastValOfGoods_received_date : String;

    model_internal function _doValidationForGoods_received_date(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfGoods_received_date != null && model_internal::_doValidationLastValOfGoods_received_date == value)
           return model_internal::_doValidationCacheOfGoods_received_date ;

        _model.model_internal::_goods_received_dateIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isGoods_received_dateAvailable && _internal_goods_received_date == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "goods_received_date is required"));
        }

        model_internal::_doValidationCacheOfGoods_received_date = validationFailures;
        model_internal::_doValidationLastValOfGoods_received_date = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfGr_id : Array = null;
    model_internal var _doValidationLastValOfGr_id : String;

    model_internal function _doValidationForGr_id(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfGr_id != null && model_internal::_doValidationLastValOfGr_id == value)
           return model_internal::_doValidationCacheOfGr_id ;

        _model.model_internal::_gr_idIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isGr_idAvailable && _internal_gr_id == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "gr_id is required"));
        }

        model_internal::_doValidationCacheOfGr_id = validationFailures;
        model_internal::_doValidationLastValOfGr_id = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfClient_name : Array = null;
    model_internal var _doValidationLastValOfClient_name : String;

    model_internal function _doValidationForClient_name(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfClient_name != null && model_internal::_doValidationLastValOfClient_name == value)
           return model_internal::_doValidationCacheOfClient_name ;

        _model.model_internal::_client_nameIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isClient_nameAvailable && _internal_client_name == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "client_name is required"));
        }

        model_internal::_doValidationCacheOfClient_name = validationFailures;
        model_internal::_doValidationLastValOfClient_name = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfCre_datetime : Array = null;
    model_internal var _doValidationLastValOfCre_datetime : String;

    model_internal function _doValidationForCre_datetime(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfCre_datetime != null && model_internal::_doValidationLastValOfCre_datetime == value)
           return model_internal::_doValidationCacheOfCre_datetime ;

        _model.model_internal::_cre_datetimeIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isCre_datetimeAvailable && _internal_cre_datetime == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "cre_datetime is required"));
        }

        model_internal::_doValidationCacheOfCre_datetime = validationFailures;
        model_internal::_doValidationLastValOfCre_datetime = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPo_detserialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfPo_detserialnumber_fk : ArrayCollection;

    model_internal function _doValidationForPo_detserialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPo_detserialnumber_fk != null && model_internal::_doValidationLastValOfPo_detserialnumber_fk == value)
           return model_internal::_doValidationCacheOfPo_detserialnumber_fk ;

        _model.model_internal::_po_detserialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPo_detserialnumber_fkAvailable && _internal_po_detserialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "po_detserialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfPo_detserialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfPo_detserialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPo_id : Array = null;
    model_internal var _doValidationLastValOfPo_id : ArrayCollection;

    model_internal function _doValidationForPo_id(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPo_id != null && model_internal::_doValidationLastValOfPo_id == value)
           return model_internal::_doValidationCacheOfPo_id ;

        _model.model_internal::_po_idIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPo_idAvailable && _internal_po_id == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "po_id is required"));
        }

        model_internal::_doValidationCacheOfPo_id = validationFailures;
        model_internal::_doValidationLastValOfPo_id = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_total_price : Array = null;
    model_internal var _doValidationLastValOfPro_total_price : ArrayCollection;

    model_internal function _doValidationForPro_total_price(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_total_price != null && model_internal::_doValidationLastValOfPro_total_price == value)
           return model_internal::_doValidationCacheOfPro_total_price ;

        _model.model_internal::_pro_total_priceIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_total_priceAvailable && _internal_pro_total_price == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_total_price is required"));
        }

        model_internal::_doValidationCacheOfPro_total_price = validationFailures;
        model_internal::_doValidationLastValOfPro_total_price = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfBalance_qty : Array = null;
    model_internal var _doValidationLastValOfBalance_qty : ArrayCollection;

    model_internal function _doValidationForBalance_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfBalance_qty != null && model_internal::_doValidationLastValOfBalance_qty == value)
           return model_internal::_doValidationCacheOfBalance_qty ;

        _model.model_internal::_balance_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isBalance_qtyAvailable && _internal_balance_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "balance_qty is required"));
        }

        model_internal::_doValidationCacheOfBalance_qty = validationFailures;
        model_internal::_doValidationLastValOfBalance_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfPro_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForPro_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_serialnumber_fk != null && model_internal::_doValidationLastValOfPro_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfPro_serialnumber_fk ;

        _model.model_internal::_pro_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_serialnumber_fkAvailable && _internal_pro_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfPro_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfPro_serialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfGr_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfGr_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForGr_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfGr_serialnumber_fk != null && model_internal::_doValidationLastValOfGr_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfGr_serialnumber_fk ;

        _model.model_internal::_gr_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isGr_serialnumber_fkAvailable && _internal_gr_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "gr_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfGr_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfGr_serialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPo_qty : Array = null;
    model_internal var _doValidationLastValOfPo_qty : ArrayCollection;

    model_internal function _doValidationForPo_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPo_qty != null && model_internal::_doValidationLastValOfPo_qty == value)
           return model_internal::_doValidationCacheOfPo_qty ;

        _model.model_internal::_po_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPo_qtyAvailable && _internal_po_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "po_qty is required"));
        }

        model_internal::_doValidationCacheOfPo_qty = validationFailures;
        model_internal::_doValidationLastValOfPo_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSales_con_code : Array = null;
    model_internal var _doValidationLastValOfSales_con_code : ArrayCollection;

    model_internal function _doValidationForSales_con_code(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfSales_con_code != null && model_internal::_doValidationLastValOfSales_con_code == value)
           return model_internal::_doValidationCacheOfSales_con_code ;

        _model.model_internal::_sales_con_codeIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSales_con_codeAvailable && _internal_sales_con_code == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sales_con_code is required"));
        }

        model_internal::_doValidationCacheOfSales_con_code = validationFailures;
        model_internal::_doValidationLastValOfSales_con_code = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfReceived_qty : Array = null;
    model_internal var _doValidationLastValOfReceived_qty : ArrayCollection;

    model_internal function _doValidationForReceived_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfReceived_qty != null && model_internal::_doValidationLastValOfReceived_qty == value)
           return model_internal::_doValidationCacheOfReceived_qty ;

        _model.model_internal::_received_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isReceived_qtyAvailable && _internal_received_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "received_qty is required"));
        }

        model_internal::_doValidationCacheOfReceived_qty = validationFailures;
        model_internal::_doValidationLastValOfReceived_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfWarehouse_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfWarehouse_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForWarehouse_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfWarehouse_serialnumber_fk != null && model_internal::_doValidationLastValOfWarehouse_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfWarehouse_serialnumber_fk ;

        _model.model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isWarehouse_serialnumber_fkAvailable && _internal_warehouse_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "warehouse_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfWarehouse_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfWarehouse_serialnumber_fk = value;

        return validationFailures;
    }
    

}

}
